import {Component, EventEmitter, OnInit, Output} from '@angular/core';
import {BaseGrid} from '../../../../base/components/BaseGrid';
import {ProgrammeService} from '../../services/programme.service';

@Component({
  selector: 'app-programme-grid',
  templateUrl: './programme-grid.component.html',
  styles: []
})
export class ProgrammeGridComponent extends BaseGrid implements OnInit {

  @Output() onProject = new EventEmitter<{ entity: object }>();

  constructor(private programmeService: ProgrammeService) {
    super();
  }

  queryData(params) {
    return this.programmeService.findProgrammeByPage(params);
  }

}
